<?php
declare (strict_types = 1);

namespace app\common\model;

class Binding extends Base
{
   protected $name = 'binding';

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'uid')->field('id,code,name,nickname,photo,mobile');
    }

    public function admin()
    {
        return $this->hasOne(Admin::class, 'id', 'aid')->field('id,admin_name,mobile');
    }
}
